package com.example.entry;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 抢单表
 */
@TableName(value ="order_grabbing")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderGrabbing implements Serializable {
    private Integer id;

    private Integer orderFormId;

    private Integer userId;

    private String nickName;

    private String userAddress;

    private String userPhone;

    private Integer productId;

    private String productName;

    private String productAddress;

    private Double productPrice;

    private Double commission;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    private Integer status;

    private Integer riderId;

    private String riderName;

    private String riderPhone;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date orderAcceptanceTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date overTime;

    private static final long serialVersionUID = 1L;
}